﻿

function loginCheck(){
	var usern = document.getElementById("username").value;
	var userp = document.getElementById("userpwd").value;
	var check = /^[a-zA-Z][a-zA-Z0-9]*$/;
	var flag  = true;
	if(usern==null||usern==""){
		alert("账号不能为空！");
		flag = false;
	}else if(!check.test(usern)){
		alert("请输入正确账号！");
		flag = false;
	}else if(userp==null||userp==""){
		alert("密码不能为空");
		flag = false;
	}
	return flag;
}